﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="" name="description" />
    <meta content="" name="author" />
    <title>@ViewBag.Title</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    @Styles.Render("~/Content/bootstrap")
    @Scripts.Render("~/bundles/modernizr")

    @RenderSection("styles", required: false)
</head>
<body>
    <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">

                <!-- .btn-navbar is used as the toggle for collapsed navbar content -->
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>


                @Html.ActionLink(Navigation.WorktimeCreate, EActionHome.Index.ToString(), EControllers.Home.ToString(), null, new { @class = "brand" })

                <div class="nav-collapse collapse">
                    @if (CurrentSession.IsUserLoggedIn())
                    {
                        <ul class="nav">
                            <li>
                                @Html.ActionLink("Eintrag anlegen", EActionWorktime.Worktime.ToString(), EControllers.Worktime.ToString(), new { id = 0, userId = CurrentSession.GetCurrentUser().ID }, new { data_icon="icon-plus-sign" })
                            </li>
                            <li>
                                @Html.ActionLink(Navigation.WorktimeSettings, EActionWorktime.EditWorktimeSettings.ToString(), EControllers.Worktime.ToString(), new { ID = CurrentSession.GetCurrentUser().ID }, null)
                            </li>
                            <li>
                                @Html.ActionLink(Navigation.HolidayList, EActionWorktime.HolidayList.ToString(), EControllers.Worktime.ToString(), new { id = CurrentSession.GetCurrentUser().ID }, null)
                            </li>
                            <li>
                                @Html.ActionLink(Navigation.MyProjects, EActionWorktime.WorktimeProjectList.ToString(), EControllers.Worktime.ToString(), new { id = CurrentSession.GetCurrentUser().ID }, null)
                            </li>
                        </ul>
                    }

                    @Html.Partial("_LogOnPartial")
                </div>

            </div>
        </div>
    </div>

    <div class="container">
        @RenderSection("featured", required: false)
        <div class="row">
            @RenderBody()
        </div>
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/twitter")
    @RenderSection("scripts", required: false)
    @Html.Partial("_JavaScriptMainPage")
</body>
</html>
